package com.heima.model.behavior.dtos;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class UnLikesBehaviorDto {
    /**
     * 文章id
     */
    private String articleId;
    /**
     * 0：不喜欢 1：取消不喜欢
     */
    private short type;

    public boolean checkParam(){
        if(StringUtils.isBlank(articleId) || type>1 || type<0){
            return true;
        }else {
            return  false;
        }
    }

}
